'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/sendContract', controller.actions.sendContract);         // 发送给合约的

  router.get('/contractRes', controller.actions.contractRes);           // 智能合约rest
  router.get('/isBuyCount', controller.actions.isBuyCount);             // 当前买涨|买涨统计
  router.get('/blockedBalance', controller.actions.blockedBalance);     // 冻结余额
  router.get('/accountBalance', controller.actions.accountBalance);     // 监听用
  router.get('/updateAction', controller.actions.updateAction);
  router.post('/cash', controller.actions.cashCreate);
  router.resources('actions', '/actions', controller.actions);          // 列表|添加   提现 下单在这里
  // cashCreate
  
};
